import * as echarts from "echarts";
export default {
    grid: {
        left: "0%",
        right: "4%",
        top: "15  %",
        bottom: "0%",
        containLabel: true,
    },
    tooltip: {
        trigger: "axis",
        axisPointer: {
            type: "line",
        },
    },
    legend: {
        show: true,
        textStyle: {
            color: "#fff",
        },
        x: "right",
        y: "top",
    },
    xAxis: [
        {
            type: "category",
            boundaryGap: 0, //x轴两边留白策略
            axisLine: {
                show: true,
                lineStyle: {
                    width: 1,
                    color: "#fff",
                },
            },
            axisLabel: {
                color: "#fff",
            },
            splitLine: {
                show: true,
                lineStyle: {
                    type: "dashed",
                    color: "#777",
                },
            },
            axisTick: {
                show: false,
            },
            data: [],
        },
    ],
    yAxis: [
        {
            type: "value",
            name: "条",
            nameTextStyle: {
                color: "#fff",
                padding: [0, 40, 0, 0],
            },
            padding: 5,
            splitLine: {
                show: true,
                lineStyle: {
                    type: "dashed",
                    color: "#777",
                },
            },
            axisLine: {
                show: false,
            },
            splitNumber: 4,
            axisLabel: {
                show: true,
                margin: 12,
                textStyle: {
                    color: "#fff",
                },
            },
            axisTick: {
                show: true,
                length: 11,
                lineStyle: {
                    type: "dashed",
                },
            },
        },
    ],
    series: [
        {
            name: "发布数",
            type: "line",
            smooth: true,
            showSymbol: false, //是否默认显示圆点
            symbol: "circle", //设定为实心点
            symbolSize: 8, //设定实心点的大小
            itemStyle: {
                color: "#02F8FC", //线的颜色
            },
            areaStyle: {
                color: new echarts.graphic.LinearGradient(
                    0,
                    0,
                    0,
                    1,
                    [
                        {
                            offset: 0,
                            color: "#55FDFF",
                        },
                        {
                            offset: 1,
                            color: "rgba(85, 253, 255, 0.1)",
                        },
                    ],
                    false
                ),
            },
            data: [],
        },
    ],
}